package cn.com.connext.scrm.domain.master;



import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.ZonedDateTime;

/**
 * Created by YANG205 on 2018/6/27.
 */
@Entity
@DynamicUpdate
@Table(name = "member_index_module")   // 扫码统计
public class MemberIndexModule{
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @Valid
    @NotEmpty(message = "img不能为空!")
    @Size(message = "[img]长度不能超过256!", max = 256)
    @Column(name = "img")
    private String img;
    @Valid
    @NotEmpty(message = "url不能为空!")
    @Size(message = "[url]长度不能超过128!", max = 128)
    @Column(name = "url")
    private String url;
    @Column(name = "is_enable")
    private Integer isEnable;

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    private ZonedDateTime createTime;

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
